/**
 * Created by Administrator on 2017/5/18.
 */
define([
    'regular!./index.html',
    'util/dispatcher/regularModule'
], function (template, m) {
    var IndexModule = Regular.extend({
        template: template,
        data: {
            source: [
                {name: '节点1', children: [
                    {name: '节点1.1'},
                    {name: '节点1.2', children: [
                        {name: '节点1.2.1'},
                        {name: '节点1.2.2'}
                    ]},
                    {name: '节点1.3'},
                    {name: '节点1.4'},
                ]},
                {name: '节点2'},
                {name: '节点3', children: [
                    {name: '节点3.1'},
                    {name: '节点3.2'}
                ]}
            ],
            value: ''
        }
    });
    return m._$regist('index', IndexModule);
});